package com.hailiang.controller;

import com.hailiang.po.CarInfo;
import com.hailiang.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created with: temp
 * Package com.hailiang.controller
 * Author HULIN
 * Description:
 * Date 2018/5/10 13:54
 * Modified By:
 * Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@Controller
public class CarInfoController {
	@Autowired
	private InfoService infoService;

	@RequestMapping(value = "/getCarInfo", method = RequestMethod.GET)
	@ResponseBody
	public List<CarInfo> getCarInto(){
		return infoService.getCarInfo();
	}

	@RequestMapping(value = "/getHello", method = RequestMethod.GET)
	@ResponseBody
	public String getHello(){
		return "hello";
	}
}
